﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ManageLandInfo.aspx.cs"
    Inherits="NJCORS.forms.ManageLandInfo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <link rel="Stylesheet" type="text/css" href="../themes/css/global.css" />
    <script type="text/javascript" src="../js/click2.js"></script>


</head>
<body>
    <form id="form1" runat="server">
    <div class="bodydiv">
        <div class="Noprn">
            <div class="infoheader">
                <div>
                    <img alt="" src="../themes/images/add.gif" width="10" height="10" />
                    <a href="AddLandInfo.aspx">添加土地信息</a></div>
                <span>土地信息管理</span>
            </div>
            <div id="querybar" style="display: none">
                    <span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 模糊查询：</span>
                    <asp:TextBox ID="txblike" runat="server"></asp:TextBox>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:ImageButton ID="btnquery" runat="server" ImageUrl="../themes/images/btnsearch.gif"
                    OnClick="btnquery_Click" onmousemove="this.src='../themes/images/btnsearchhover.gif'"
                    onmouseout="this.src='../themes/images/btnsearch.gif'" />
            </div>
            <div id="Data">
                <asp:GridView ID="griddata" CssClass="griddata" runat="server" AutoGenerateColumns="False"
                    AllowPaging="True" OnRowUpdating="griddata_RowUpdating" OnRowDataBound="griddata_RowDataBound"
                    OnRowDeleting="griddata_RowDeleting" OnRowEditing="griddata_RowEditing" OnRowCancelingEdit="griddata_RowCancelingEdit"
                    PagerSettings-Visible="False" PageSize="15" 
                    onpageindexchanging="griddata_PageIndexChanging">
                    <PagerSettings Visible="False" />
                    <Columns>
                        <asp:BoundField DataField="LandID" HeaderText="土地ID" ReadOnly="True" />
                        <asp:TemplateField HeaderText="土地名称">
                            <ItemTemplate>
                                <asp:Label ID="lbLandName" runat="server" Text='<%# Bind("LandName") %>'></asp:Label>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:TextBox ID="txbLandName" runat="server" Text='<%# Bind("LandName") %>'></asp:TextBox>
                            </EditItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="土地范围">
                            <ItemTemplate>
                                <asp:Label ID="lbLandScope" runat="server" Text='<%# Bind("LandScope") %>'></asp:Label>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:TextBox ID="txtLandScope" runat="server" Text='<%# Bind("LandScope") %>'></asp:TextBox>
                            </EditItemTemplate>
                        </asp:TemplateField>
                        
                        <asp:TemplateField HeaderText="土地属性">
                            <ItemTemplate>
                                <asp:Label ID="lbAttributeName" runat="server" Text='<%# Bind("AttributeName") %>'></asp:Label>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:HiddenField ID="hfAttributeID" runat="server" Value='<%# Bind("AttributeID") %>' />
                                <asp:DropDownList ID="ddlAttributeID" runat="server">
                                </asp:DropDownList>
                            </EditItemTemplate>
                            <ItemStyle HorizontalAlign="Center"  />
                        </asp:TemplateField>
                        
                        <asp:CommandField ShowEditButton="True" EditText="修改">
                        </asp:CommandField>
                        <asp:TemplateField ShowHeader="False">
                            <ItemTemplate>
                                <asp:LinkButton ID="btndelete" runat="server" CausesValidation="False" CommandName="Delete"
                                    Text="删除"></asp:LinkButton>
                            </ItemTemplate>
                            <EditItemTemplate>
                            </EditItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <RowStyle CssClass="GridViewRowStyle" />
                    <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                    <EmptyDataTemplate>
                        <div class="divempty">
                            <span>没有符合条件的土地信息！</span>
                        </div>
                    </EmptyDataTemplate>
                </asp:GridView>
                <div id="divpager" runat="server" style="display: none">
                    <table width="100%" class="pager">
                        <tr>
                            <td style="width: 55px">
                                <asp:ImageButton ID="LinkButtonFirstPage" runat="server" ImageUrl="~/themes/images/pagefirst.gif"
                                    CommandArgument="First" CommandName="Page" OnClick="PagerButton_Click" />
                            </td>
                            <td style="width: 55px">
                                <asp:ImageButton ID="LinkButtonPreviousPage" runat="server" ImageUrl="~/themes/images/pageprevious.gif"
                                    CommandArgument="Prev" CommandName="Page" OnClick="PagerButton_Click" />
                            </td>
                            <td style="width: 55px">
                                <asp:ImageButton ID="LinkButtonNextPage" runat="server" ImageUrl="~/themes/images/pagenext.gif"
                                    CommandArgument="Next" CommandName="Page" OnClick="PagerButton_Click" />
                            </td>
                            <td style="width: 55px">
                                <asp:ImageButton ID="LinkButtonLastPage" runat="server" ImageUrl="~/themes/images/pagelast.gif"
                                    CommandArgument="Last" CommandName="Page" OnClick="PagerButton_Click" />
                            </td>
                            <td style="width: 70px">
                                当前页：
                                <asp:Label ID="LabelCurrentPage" runat="server"></asp:Label>
                            </td>
                            <td style="width: 70px">
                                总页数：
                                <asp:Label ID="LabelPageCount" runat="server"></asp:Label>
                            </td>
                            <td style="width: 100px">
                                总记录数
                                <asp:Label ID="LabelRecordCount" runat="server"></asp:Label>
                            </td>
                            <td>
                                跳转至<asp:TextBox ID="txtpagnum" runat="server" CssClass="textbox20">1</asp:TextBox>
                                <asp:ImageButton ID="btngo" runat="server" ImageUrl="~/themes/images/btngo.gif" OnClick="btngo_Click" />
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="errormessage" id="diverrormsg" runat="server" style="display: none">
                <asp:Label ID="lberrormsg" runat="server" Text="test"></asp:Label>
            </div>
        </div>
        <!--startprint-->
        <div style="margin-left: 30px;">
            <div id="divprint" runat="server" class="divprint" style="display: none">
            </div>
        </div>
        <!--endprint-->
    </div>
    </form>
</body>
</html>
